import Opt from '@/components/dt/info/Opt.js'

class Column extends Opt {
  constructor() {
    super()
    this.build()
  }

  build() {
    this.createAll()
    this.opts.push(...this.all)
  }

  createAll() {
    this.all = [
      {
        type: 'index',
        title: '序号',
        minWidth: 50,
        fixed: 'left'
      },
      {
        field: 'orgName',
        title: '所属组织',
        minWidth: 160,
        fixed: 'left'
      },
      {
        field: 'housesName',
        title: '案场名称',
        minWidth: 180,
        fixed: 'left'
      },
      {
        field: 'costCenterCode',
        title: '成本中心代码',
        minWidth: 140
      },
      {
        field: 'housesStatus',
        title: '案场状态',
        minWidth: 100
      },
      {
        field: 'cooperationMode',
        title: '合作模式',
        minWidth: 130
      },
      {
        field: 'enterDate',
        title: '进场日期',
        minWidth: 120,
        cell: {
          text: {
            type: 'date'
          }
        }
      },
      {
        field: 'baseAgentRate',
        title: '代理费率(%)',
        minWidth: 170
      },
      {
        field: 'totalPrice',
        title: '签约总金额(元)',
        minWidth: 140,
        cell: {
          text: {
            type: 'number'
          }
        }
      },
      {
        field: 'preCommAmountSum',
        title: '预估代理费总额(元)',
        minWidth: 160,
        cell: {
          text: {
            type: 'number'
          }
        }
      },
      {
        field: 'preCommAmount',
        title: '预估代理费(不含交房)(元)',
        minWidth: 190,
        cell: {
          text: {
            type: 'number'
          }
        }
      },
      {
        field: 'prePremiumCommAmount',
        title: '预估溢价(元)',
        minWidth: 140,
        cell: {
          text: {
            type: 'number'
          }
        }
      },
      {
        field: 'preDeliveryCommAmount',
        title: '预估交房代理费(元)',
        minWidth: 160,
        cell: {
          text: {
            type: 'number'
          }
        }
      },
      {
        field: 'preCommAmountRate',
        title: '预估综合费率',
        minWidth: 120
      },
      {
        field: 'canSettlementTotalSales',
        title: '符合条件总销(元)',
        minWidth: 140,
        cell: {
          text: {
            type: 'number'
          }
        }
      },
      {
        field: 'canCommAmountSum',
        title: '符合条件代理费总额(元)',
        minWidth: 180,
        cell: {
          text: {
            type: 'number'
          }
        }
      },
      {
        field: 'canCommAmount',
        title: '符合条件代理费(不含交房)(元)',
        minWidth: 220,
        cell: {
          text: {
            type: 'number'
          }
        }
      },
      {
        field: 'canPremiumCommAmount',
        title: '符合条件溢价(元)',
        minWidth: 140,
        cell: {
          text: {
            type: 'number'
          }
        }
      },
      {
        field: 'canDeliveryCommAmount',
        title: '符合条件交房代理费(元)',
        minWidth: 180,
        cell: {
          text: {
            type: 'number'
          }
        }
      },
      {
        field: 'canCommAmountRate',
        title: '符合条件综合费率',
        minWidth: 140
      },
      {
        field: 'settlementTotalSales',
        title: '已结算总销(元)',
        minWidth: 140,
        cell: {
          text: {
            type: 'number'
          }
        }
      },
      {
        field: 'settledAgentCostSum',
        title: '已结算代理费(含税)(元)',
        minWidth: 180,
        cell: {
          text: {
            type: 'number'
          }
        }
      },
      {
        field: 'settledAgentCost',
        title: '已结算代理费(不含交房)(元)',
        minWidth: 200,
        cell: {
          text: {
            type: 'number'
          }
        }
      },
      {
        field: 'settledPremiumAgentCost',
        title: '已结算溢价(元)',
        minWidth: 140,
        cell: {
          text: {
            type: 'number'
          }
        }
      },
      {
        field: 'settledDeliveryAgentCost',
        title: '已结算交房代理费(元)',
        minWidth: 160,
        cell: {
          text: {
            type: 'number'
          }
        }
      },
      {
        field: 'noTaxAmountSum',
        title: '已结算代理费(不含税)(元)',
        minWidth: 190,
        cell: {
          text: {
            type: 'number'
          }
        }
      },
      {
        field: 'settledAgentCostRate',
        title: '已结算综合费率',
        minWidth: 120
      },
      {
        field: 'backAmount',
        title: '已回款(元)',
        minWidth: 140,
        cell: {
          text: {
            type: 'number'
          }
        }
      },
      {
        field: 'channelCostValue',
        title: '签约预估渠道费用(元)',
        minWidth: 160,
        cell: {
          text: {
            type: 'number'
          }
        }
      }
    ]
  }
}

export default Column
